#!/bin/csh
foreach x ( 1234 4153 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 )
  echo $x
  sed 's/NABTONID/'$x'/g' nabton_v2.c > nabton_work.c
  gcc -Wall -o nabton_v2_$x nabton_work.c -lwiringPi -lm
end

